package com.example.server.config.encrypt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.lang.annotation.Annotation;

/**
 * @Author: xieyonghui
 * @Date: 2019/7/3
 * @Description:
 */
@Data
@ConfigurationProperties(prefix = "faster.secret")
@Component
public class EncryptConfig {
    /**
     * 是否开启
     */
    private boolean enabled;

    /**
     * 是否扫描注解
     */
    private boolean scanAnnotation;

    /**
     * 扫描自定义注解
     */
    private Class<? extends Annotation> annotationClass;

    /**
     * 密钥
     */
    private String desSecretKey;

    /**
     * IV向量
     */
    private String desIv;
}
